#include <BustaModelMPGameState.h>
Public Member Functions | |
BustaModelMPGameState () | |
Constructor. | |
BustaModelMPGameState (int opponentCount) | |
CONSTRUCTOR. | |
BustaModelMPGameState (BustaModelGameState *gs, BustaModelOpponent **oppos, int n) | |
Constructor. | |
~BustaModelMPGameState () | |
Destructor. | |
int | getFullViewID () |
Returns the identification number of the fully viewed opponent. | |
BustaModelGameState * | getGameState () |
Gets opponent GameState. | |
BustaModelOpponent * | getOpponent (int n) |
Gets opponent. | |
BustaModelOpponent ** | getOpponents () |
Returns opponent array. | |
int | getSeqNo () |
Returns the sequence number of the gamestate. | |
void | setFullViewID (int oID) |
Sets the identification number of the opponent to be fully viewed. | |
void | setNumOpps (int opponentCount) |
Sets the number of tracked brief opponent states. | |
void | setSeqNo (int newSeqNo) |
Sets the sequence number of the gamestate. |
Game state representation for MP opponents. Contains Game State model for selected opponent, plus important info for other opponents
|
Constructor. Initializes variables |
|
CONSTRUCTOR. Initializes a full gamestate, and an array of opponentCount brief gamestates.
|
|
Constructor. Initializes variables |
|
Destructor. Destructor |
|
Returns the identification number of the fully viewed opponent. Returns the network identification number of the opponent whose full gamestate is being tracked.
|
|
Gets opponent GameState. Gets pointer to the GameState of highlighted opponent |
|
Gets opponent. Returns a pointer to the opponent in the nth location in the array |
|
Returns opponent array. Returns the entire array of opponent brief states
|
|
Returns the sequence number of the gamestate. Returns the sequence number associated with the gamestate. Each gamestate that is received from the server is marked with a sequence number. This sequence number is stored, and it is this method that returns that sequence number.
|
|
Sets the identification number of the opponent to be fully viewed. Sets the network identification number of the opponent that is being fully viewed. This should be the identification number of the opponent whose gamestate is being tracked in opponentGS.
|
|
Sets the number of tracked brief opponent states. Sets the number of opponents to track using brief game states. |
|
Sets the sequence number of the gamestate. Sets the sequence number associated with this gamestate to a particular value.
|